<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EOS.IO: contracts/eoslib/stdlib.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="eos-logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EOS.IO
   &#160;<span id="projectnumber">DAWN3.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ae9b15dd87e066e1908bbd90e8f38627.html">contracts</a></li><li class="navelem"><a class="el" href="dir_3fea0bf1ce879ce73e6ecec98007efcd.html">eoslib</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">stdlib.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="stdlib_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// forward declarations, to be filled in by the compiler, for placement new.</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;   <span class="keywordtype">void</span>* <span class="keyword">operator</span> <span class="keyword">new</span>(<a class="code" href="group__types.html#ga7c94ea6f8948649f8d181ae55911eeaf">size_t</a>, <span class="keywordtype">void</span>*);</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;   <span class="keywordtype">void</span>* <span class="keyword">operator</span> <span class="keyword">new</span>[](<a class="code" href="group__types.html#ga7c94ea6f8948649f8d181ae55911eeaf">size_t</a>, <span class="keywordtype">void</span>*);</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;}</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// compatibility for things declared by the c++ standard libraries that compilers replace</span></div><div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="namespacestd.html">   10</a></span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacestd.html">std</a> {</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">// forward declaration of initializer_list</span></div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="classstd_1_1initializer__list.html">   13</a></span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> E&gt; <span class="keyword">class </span><a class="code" href="classstd_1_1initializer__list.html">initializer_list</a> {</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;   <span class="keyword">public</span>:</div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="classstd_1_1initializer__list.html#a90e1dbb133867ca6222d2f5b98e36307">   15</a></span>&#160;      <span class="keyword">using</span> <a class="code" href="classstd_1_1initializer__list.html#a90e1dbb133867ca6222d2f5b98e36307">value_type</a> = E;</div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="classstd_1_1initializer__list.html#aab3f40f00aa34001561eaac080b90965">   16</a></span>&#160;      <span class="keyword">using</span> <a class="code" href="classstd_1_1initializer__list.html#aab3f40f00aa34001561eaac080b90965">reference</a> = <span class="keyword">const</span> E&amp;;</div><div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="classstd_1_1initializer__list.html#a269425b60d7e5776a29620420988c601">   17</a></span>&#160;      <span class="keyword">using</span> <a class="code" href="classstd_1_1initializer__list.html#a269425b60d7e5776a29620420988c601">const_reference</a> = <span class="keyword">const</span> E&amp;;</div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="classstd_1_1initializer__list.html#ae137630e6f4c81c399f953c348fb7d8f">   18</a></span>&#160;      <span class="keyword">using</span> <a class="code" href="classstd_1_1initializer__list.html#ae137630e6f4c81c399f953c348fb7d8f">size_type</a> = <a class="code" href="group__types.html#ga7c94ea6f8948649f8d181ae55911eeaf">size_t</a>;</div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="classstd_1_1initializer__list.html#aea5606c29a4f235eb44309ab74ee8699">   19</a></span>&#160;      <span class="keyword">using</span> <a class="code" href="classstd_1_1initializer__list.html#aea5606c29a4f235eb44309ab74ee8699">iterator</a> = <span class="keyword">const</span> E*;</div><div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="classstd_1_1initializer__list.html#aa6f1ed3d7ea4df47a820ca978314eb38">   20</a></span>&#160;      <span class="keyword">using</span> <a class="code" href="classstd_1_1initializer__list.html#aa6f1ed3d7ea4df47a820ca978314eb38">const_iterator</a> = <span class="keyword">const</span> E*;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;      constexpr <a class="code" href="classstd_1_1initializer__list.html#a99fd02613715235bd6bc89ca4530d6fe">initializer_list</a>() noexcept;</div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="classstd_1_1initializer__list.html#aee0702b77d3afc3964b6dff4bf09dc05">   22</a></span>&#160;      constexpr <span class="keywordtype">size_t</span> <a class="code" href="classstd_1_1initializer__list.html#aee0702b77d3afc3964b6dff4bf09dc05">size</a>() const noexcept {</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;         <span class="keywordflow">return</span> _len;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;      }</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="classstd_1_1initializer__list.html#ac763ad3c10144402b0c8d8f9995dcc47">   25</a></span>&#160;      constexpr <span class="keyword">const</span> E* <a class="code" href="classstd_1_1initializer__list.html#ac763ad3c10144402b0c8d8f9995dcc47">begin</a>() const noexcept {</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;         <span class="keywordflow">return</span> _iter;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;      }</div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classstd_1_1initializer__list.html#abd1d0fd2c35074ce0b51ba1c39173ee0">   28</a></span>&#160;      constexpr <span class="keyword">const</span> E* <a class="code" href="classstd_1_1initializer__list.html#abd1d0fd2c35074ce0b51ba1c39173ee0">end</a>() const noexcept {</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;         <span class="keywordflow">return</span> _iter + _len;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;      }</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;   <span class="keyword">private</span>:</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;      <a class="code" href="classstd_1_1initializer__list.html#aea5606c29a4f235eb44309ab74ee8699">iterator</a>  _iter;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;      <a class="code" href="classstd_1_1initializer__list.html#ae137630e6f4c81c399f953c348fb7d8f">size_type</a> _len;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;      constexpr <a class="code" href="classstd_1_1initializer__list.html#a99fd02613715235bd6bc89ca4530d6fe">initializer_list</a>(<a class="code" href="classstd_1_1initializer__list.html#aa6f1ed3d7ea4df47a820ca978314eb38">const_iterator</a> array, <a class="code" href="classstd_1_1initializer__list.html#ae137630e6f4c81c399f953c348fb7d8f">size_type</a> len)</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;      :_iter(array),_len(len)</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;      {}</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;};</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment">// initializer list range access</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> E&gt; constexpr <span class="keyword">const</span> E* <a class="code" href="classstd_1_1initializer__list.html#ac763ad3c10144402b0c8d8f9995dcc47">begin</a>(<a class="code" href="classstd_1_1initializer__list.html">initializer_list&lt;E&gt;</a> il) noexcept;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> E&gt; constexpr <span class="keyword">const</span> E* <a class="code" href="classstd_1_1initializer__list.html#abd1d0fd2c35074ce0b51ba1c39173ee0">end</a>(<a class="code" href="classstd_1_1initializer__list.html">initializer_list&lt;E&gt;</a> il) noexcept;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;}</div><div class="ttc" id="group__types_html_ga7c94ea6f8948649f8d181ae55911eeaf"><div class="ttname"><a href="group__types.html#ga7c94ea6f8948649f8d181ae55911eeaf">size_t</a></div><div class="ttdeci">unsigned int size_t</div><div class="ttdef"><b>Definition:</b> types.h:33</div></div>
<div class="ttc" id="classstd_1_1initializer__list_html_a90e1dbb133867ca6222d2f5b98e36307"><div class="ttname"><a href="classstd_1_1initializer__list.html#a90e1dbb133867ca6222d2f5b98e36307">std::initializer_list::value_type</a></div><div class="ttdeci">E value_type</div><div class="ttdef"><b>Definition:</b> stdlib.hpp:15</div></div>
<div class="ttc" id="classstd_1_1initializer__list_html_abd1d0fd2c35074ce0b51ba1c39173ee0"><div class="ttname"><a href="classstd_1_1initializer__list.html#abd1d0fd2c35074ce0b51ba1c39173ee0">std::initializer_list::end</a></div><div class="ttdeci">constexpr const E * end() const noexcept</div><div class="ttdef"><b>Definition:</b> stdlib.hpp:28</div></div>
<div class="ttc" id="classstd_1_1initializer__list_html_aa6f1ed3d7ea4df47a820ca978314eb38"><div class="ttname"><a href="classstd_1_1initializer__list.html#aa6f1ed3d7ea4df47a820ca978314eb38">std::initializer_list::const_iterator</a></div><div class="ttdeci">const E * const_iterator</div><div class="ttdef"><b>Definition:</b> stdlib.hpp:20</div></div>
<div class="ttc" id="classstd_1_1initializer__list_html_aea5606c29a4f235eb44309ab74ee8699"><div class="ttname"><a href="classstd_1_1initializer__list.html#aea5606c29a4f235eb44309ab74ee8699">std::initializer_list::iterator</a></div><div class="ttdeci">const E * iterator</div><div class="ttdef"><b>Definition:</b> stdlib.hpp:19</div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdef"><b>Definition:</b> stdlib.hpp:10</div></div>
<div class="ttc" id="classstd_1_1initializer__list_html_ae137630e6f4c81c399f953c348fb7d8f"><div class="ttname"><a href="classstd_1_1initializer__list.html#ae137630e6f4c81c399f953c348fb7d8f">std::initializer_list::size_type</a></div><div class="ttdeci">size_t size_type</div><div class="ttdef"><b>Definition:</b> stdlib.hpp:18</div></div>
<div class="ttc" id="classstd_1_1initializer__list_html_ac763ad3c10144402b0c8d8f9995dcc47"><div class="ttname"><a href="classstd_1_1initializer__list.html#ac763ad3c10144402b0c8d8f9995dcc47">std::initializer_list::begin</a></div><div class="ttdeci">constexpr const E * begin() const noexcept</div><div class="ttdef"><b>Definition:</b> stdlib.hpp:25</div></div>
<div class="ttc" id="classstd_1_1initializer__list_html_a99fd02613715235bd6bc89ca4530d6fe"><div class="ttname"><a href="classstd_1_1initializer__list.html#a99fd02613715235bd6bc89ca4530d6fe">std::initializer_list::initializer_list</a></div><div class="ttdeci">constexpr initializer_list() noexcept</div></div>
<div class="ttc" id="classstd_1_1initializer__list_html"><div class="ttname"><a href="classstd_1_1initializer__list.html">std::initializer_list</a></div><div class="ttdef"><b>Definition:</b> stdlib.hpp:13</div></div>
<div class="ttc" id="classstd_1_1initializer__list_html_a269425b60d7e5776a29620420988c601"><div class="ttname"><a href="classstd_1_1initializer__list.html#a269425b60d7e5776a29620420988c601">std::initializer_list::const_reference</a></div><div class="ttdeci">const E &amp; const_reference</div><div class="ttdef"><b>Definition:</b> stdlib.hpp:17</div></div>
<div class="ttc" id="classstd_1_1initializer__list_html_aab3f40f00aa34001561eaac080b90965"><div class="ttname"><a href="classstd_1_1initializer__list.html#aab3f40f00aa34001561eaac080b90965">std::initializer_list::reference</a></div><div class="ttdeci">const E &amp; reference</div><div class="ttdef"><b>Definition:</b> stdlib.hpp:16</div></div>
<div class="ttc" id="classstd_1_1initializer__list_html_aee0702b77d3afc3964b6dff4bf09dc05"><div class="ttname"><a href="classstd_1_1initializer__list.html#aee0702b77d3afc3964b6dff4bf09dc05">std::initializer_list::size</a></div><div class="ttdeci">constexpr size_t size() const noexcept</div><div class="ttdef"><b>Definition:</b> stdlib.hpp:22</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
